<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-text指令</title>
</head>

<body>
    <div id="app">
        <h1 style="color: cadetblue;">{{message}}看这里</h1>
        <h1 style="color: green;">{{message + '&'}}</h1>
        <!-- v-text指令 在标签中显示普通文本内容，覆盖掉标签中的内容 -->
        <h1 style="color: red;" v-text="message">看这里</h1>
        <h1 style="color: greenyellow;" v-text="message + '&'"></h1>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                message:'hello vue'
            }
        })
    </script>
</body>

</html>